package com.naiterui.ehp.bs.consult.constant;

/**
 * 视频问诊常量
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021-03-01 14:11
 **/
public class VideoConsultConstant {

    /** ---腾讯云实时音视频回调--- **/
    /**
     * 事件组id相关
     */
    /**
     * 房间事件组
     */
    public static final int EVENT_GROUP_ROOM = 1;
    /**
     * 媒体事件组
     */
    public static final int EVENT_GROUP_MEDIA = 2;

    /**
     * 事件类型相关
     */
    /**
     * 创建房间
     */
    public static final int EVENT_TYPE_CREATE_ROOM = 101;
    /**
     * 解散房间
     */
    public static final int EVENT_TYPE_DISMISS_ROOM = 102;
    /**
     * 进入房间
     */
    public static final int EVENT_TYPE_ENTER_ROOM = 103;
    /**
     * 退出房间
     */
    public static final int EVENT_TYPE_EXIT_ROOM = 104;

    /**
     * 角色类型相关
     */
    /**
     * 主播
     */
    public static final int MEMBER_TRTC_ANCHOR = 20;
    /**
     * 观众
     */
    public static final int MEMBER_TRTC_VIEWER = 21;

    /**
     * 具体原因相关
     */
    /**
     * 进房-正常进房
     */
    public static final int REASON_IN_ROOM_NORMAL = 1;
    /**
     * 进房-切换网络
     */
    public static final int REASON_IN_ROOM_SWITCH_NETWORK = 2;
    /**
     * 进房-超时重试
     */
    public static final int REASON_IN_ROOM_RETRY_AFTER_TIMEOUT = 3;
    /**
     * 退房-正常退房
     */
    public static final int REASON_OUT_ROOM_NORMAL = 1;
    /**
     * 退房-超时离开
     */
    public static final int REASON_OUT_ROOM_LEAVE_TIMEOUT = 2;
    /**
     * 退房-用户在其他终端加入，本地退出
     */
    public static final int REASON_OUT_ROOM_OTHER_TERMINAL = 3;
    /**
     * 退房-房间用户被删除
     */
    public static final int REASON_OUT_ROOM_USER_DELETED = 4;
    /**
     * 退房-用户在其他终端加入，本地退出
     */
    public static final int REASON_OUT_ROOM_FORCIBLY_KILL = 6;

    /**
     * 缓存key
     */
    public static final String VIDEO_CONSULT_CACHE_KEY = "video-consult:";
    /**
     * 视频问诊素材key
     */
    public static final String VIDEO_CONSULT_THUMB_MEDIA_CACHE_KEY = "video-consult-thumb-media";
    /**
     * 缓存key
     */
    public static final String VIDEO_CONSULT_PERSONNEL_CACHE_KEY = "video-consult:personnel_";
    /**
     * 专家的key
     */
    public static final String VIDEO_CONSULT_SPECIALIST_CACHE_KEY = "video-consult-specialist:";

    /**
     * 问诊单，签名信息缓存key
     */
    public static final String GROUP_CONSULT_CACHE_KEY = "group-consult-opinion|";
}
